package com.zzc.girl.controller;

import com.zzc.girl.properties.GirlProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/hello")
public class HelloController {
    @Autowired
    private GirlProperties girlProperties;

    @RequestMapping(value = "/say/{id}",method = RequestMethod.GET)
    public String say(@RequestParam(value="id",required = false,defaultValue = "0") Integer id){
        return "id:"+id;
    }
}
